package me.zhulu.date;

import java.util.Calendar;

/**
 * Created with IntelliJ IDEA.
 * User: herosea
 * Date: 14-6-9
 * Time: 下午4:00
 * To change this template use File | Settings | File Templates.
 */
public class CalendarTest {

    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();

        System.out.println(calendar.getTime());

        calendar.set(Calendar.AM_PM, Calendar.AM);
        calendar.set(Calendar.HOUR, 0);
        calendar.set(Calendar.MINUTE, 0);
        calendar.set(Calendar.SECOND, 0);
        calendar.set(Calendar.MILLISECOND, 0);
        System.out.println(calendar.getTime());
    }
}
